package com.miplus.ccrm.admin.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.miplus.ccrm.admin.controller.vo.NamesInfoReqVo;
import com.miplus.ccrm.admin.controller.vo.NamesInfoResVo;
import com.miplus.ccrm.admin.controller.vo.NamesResVo;
import com.miplus.ccrm.admin.controller.vo.NamesTypeResVo;
import com.miplus.ccrm.admin.pojo.SysNames;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author pc
* @description 针对表【sys_names】的数据库操作Mapper
* @createDate 2024-03-02 17:02:10
* @Entity com.miplus.ccrm.admin.pojo.SysNames
*/
@Mapper
public interface SysNamesMapper extends BaseMapper<SysNames> {

    List<NamesResVo> getNamesValues(String tid,String pid);

    List<NamesResVo> namesTypeSelect();

    List<NamesTypeResVo> namesType();

    IPage<NamesInfoResVo> namesList(Page<Object> objectPage, NamesInfoReqVo paras);

    List<SysNames> namesSelect(String tid);

    int updateRank(String tid,String id,Integer rank);
}




